﻿using System;
using System.ComponentModel;
using System.Data;
using System.Windows;
namespace WPFExcelReport
{
    public partial class TSHR20
    {
     
        public TSHR20()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VHRSTAMM(); 
            this.DataContext = MV; 
            InitializeComponent();
        }  
 
        public override void LOADALL()
        {
            dwData = TBMain.NewRow();
            dwData["HRMANDANT"] = app.Mandant;
            SResult = ((VHRSTAMM)MV).QHR04(dwData);
            MergeData(SResult, false);
            Locate("KEY", ORDERNUM);  
    }
        public override void LOADBYAUF()
        {
            Locate("KEY", ORDERNUM); 
        }
        public override void OnEXAUFChg(string vlaue)
        {
            Locate("KEY", EXAUF);
            base.OnEXAUFChg(vlaue);
        }
    }
}
